package week1;

public class Test {

    public static void main(String[] args) {
        Runtime r = Runtime.getRuntime();
        Runtime r1= Runtime.getRuntime();
        if(r1==r)
        {
            System.out.println("他们是相同的");
        }
        Process p = null;
        try{
            p = r.exec("notepad"); //打卡一个记事本程序。你可以再cmd敲个notepad试试
        } catch (Exception e) {
            System.out.println("Error executing notepad.");
        }
    }
}
